<template>
  <div>登录测试页面</div>
  <button @click="handler">点击发起请求</button>
</template>

<script setup lang="ts">
//import { reqTest } from '@/api/user/index'
import axios from 'axios'
const handler = () => {
  axios
    .post('/yyx/category/test')
    .then((response) => {
      console.log(response)
    })
    .catch(function (error) {
      // 请求失败处理
      console.log(error)
    })
}
</script>

<style scoped></style>
